Skip to content

Conversation

bfullam
Copy link
Contributor

@bfullam bfullam commented Oct 16, 2025

Explanation

Adds the Tron network to all relevant places for swaps/bridge functionality.

References

Checklist

  • I've updated the test suite for new or updated code as appropriate
  • I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate
  • I've communicated my changes to consumers by updating changelogs for packages I've changed, highlighting breaking changes as necessary
  • I've prepared draft pull requests for clients and consumer packages to resolve any breaking changes

Note

Add Tron support: chain ID/scopes, TRX native token, CAIP conversions, non-EVM detection, and trade schema validation.

  • Bridge/Chains:
    • Include TrxScope.Mainnet in ALLOWED_BRIDGE_CHAIN_IDS and add ChainId.TRON.
    • Add isTronChainId and include Tron in isNonEvmChainId.
  • CAIP/Formatters:
    • Map Tron in formatChainIdToCaip (→ TrxScope.Mainnet).
  • Tokens:
    • Add TRX symbol and TRX_SWAPS_TOKEN_OBJECT (decimals 6); map to TrxScope.Mainnet.
    • Extend SYMBOL_TO_SLIP44_MAP with TRX: slip44:195.
  • Validation/Schemas:
    • Add TronTradeDataSchema; allow in QuoteResponseSchema.trade union.
  • Imports:
    • Add TrxScope usage where applicable.

Written by Cursor Bugbot for commit b8dd4aa. This will update automatically on new commits. Configure here.

@bfullam bfullam requested a review from a team as a code owner October 16, 2025 15:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant